home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5729 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  647 b 

  1. Path: csus.edu!apollo!wchow
  2. From: wchow@sfsu.edu (Walter Chow)
  3. Newsgroups: comp.lang.c++
  4. Subject: truncate data
  5. Date: 2 Feb 1996 17:55:09 GMT
  6. Organization: San Francisco State University
  7. Message-ID: <4etj5u$gde@news.csus.edu>
  8. NNTP-Posting-Host: wchow@apollo.sfsu.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Hi;
  12.  
  13. I wonder if there is a way I can get back the file
  14. descriptor from a fstream object.  The purpose of 
  15. doing so is that I want to use 'ftruncate' to 
  16. truncate part of the data in my file.  If there is
  17. no way to get back the file descriptor, is there a
  18. way I can truncate some data of a file by using C++
  19. technique.
  20.  
  21. Appreciate.
  22.  
  23. /Walter
  24.  
  25.